-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed terms visualization on mweb android #41234
Fixed terms visualization on mweb android #41234
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
The change looks good. @luacmartins Can you trigger an adhoc build here so that I can test on a physical Android device? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
const fidoRef = baseOnfidoRef.current; | ||
if (fidoRef) { | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion | ||
const onfidoSdk = fidoRef.querySelector('#onfido-sdk > iframe') as HTMLElement | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samilabud I think we should add a comment on why this code exists.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-onfido.movAndroid: mWeb Chromemweb-chrome-onfido-ba-buttons.mp4iOS: Nativeios-onfido.moviOS: mWeb Safarimweb-safari-onfido-ba-buttons.movMacOS: Chrome / Safariweb-onfido-ba-buttons.movMacOS: Desktopdesktop-onfido-ba-buttons_wDDre0Hn.mp4 |
Just one thing on adding a comment. Rest all looks good. |
Thanks for checking out, the comment was added, please verify 🙏🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @luacmartins All yours.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.71-6 🚀
|
Details
We are using embedded content (OnFido) to load the terms, this comes with iframes that are out of our control, the first iframe comes with a height of 100% this is the root cause of why the content of the first iframe (the terms) is the only visible thing here, this is the cause of the double scroll bar.
We should use Javascript to get the viewPortHeight when the page load, later select the first iframe (the terms content) and specify the 80% of the getted height and set this one to the mentioned iframe, this modification should be done in Onfido component
Fixed Issues
$ #40941
PROPOSAL: #40941 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
N/A (Terms are viewed in external website)
Android: mWeb Chrome
Android.Chrome.terms.test.mp4
iOS: Native
N/A (Terms are viewed in external website)
iOS: mWeb Safari
Iphone.Safari.terms.test.mp4
MacOS: Chrome / Safari
MAC.Chrome.Terms.test.mp4
MacOS: Desktop
MAC.Desktop.terms.test.mp4